<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<body>
<th:block th:fragment="frag(col)" th:inline="text">
    <tr>
        <td nowrap width="80" class="td1">JSON字段名</td>
        <td nowrap width="80" class="td1"> 字段描述</td>
        <td nowrap width="200" class="td1"> 类型</td>
        <td nowrap width="40" class="td1"> 缺省值</td>
        <td nowrap width="360" class="td1"> 下拉框选项/关联表</td>
        <td nowrap width="200" class="td1"> 备注</td>
        <td nowrap width="80" class="td1"> 显示控件</td>
        <td nowrap width="80" class="td1"> 输入值</td>
    </tr>
    <tr th:each="column : ${col}">
        <th:block th:if="${!column.isVirtual()}">
            <td class="td">

                <b th:style="${column.isNullable()}?'color:black':'color:red'">
                    [[${column.getName()}]]
                </b>

                <span th:if="${column.isAlternateKey()}"> &nbsp;<font color='red'><b>(AK)</b></font></span>

            </td>

            <td class="td" th:text="${column.getDescription(locale)}"/>
         
            <td class="td" th:text="${column.getTable().getInputBoxIndicator(column,#locale)}"/>
           
            <td class="td" nowrap th:text="${column.getDefaultValue()}?:'&nbsp;'"/>


            <td class="td">
                <th:block th:if="${column.getLimitValueGroupName()!=null}">
                    <span  th:text="${column.getLimitValueGroupName()}"/>
                    <span  th:text="${column.getValues(#locale)}"/>
                </th:block >

                <th:block th:if="${column.getReferenceTable()!=null}">
                    关联表:
                    <a  th:href="@{'/p/cs/rest?table='+${column.getReferenceTable().getId()}}" th:text="${column.getReferenceTable().getName()}"/>&nbsp;
                    [[${column.getReferenceTable().getDescription(#locale)}]]
                </th:block >
                
               
            </td>

            <td class="td" th:text="${column.getComment()}?:'&nbsp;'"/>

            <td class="td" th:text="${column.getDisplaySetting().getObjectTypeString()}?:'&nbsp;'"/>


            <td class="td"><input class="putval" th:attr="inname=${column.getName()}" type="text"></input></td>
           

        </th:block>
    </tr>
</th:block>


</div>
</tr>
</body>
</html>